home *** CD-ROM | disk | FTP | other *** search
/ Amiga Collections: MegaDisc / MegaDisc 04 (1988)(MegaDisc Digital Publishing)(AU)[m][WB].zip / MegaDisc 04 (1988)(MegaDisc Digital Publishing)(AU)[m][WB].adf / CALCULATOR / CALC.manual < prev    next >
Text File  |  2007-12-01  |  23KB  |  542 lines

  1.  
  2.     R.P.N. CALCULATOR "CALC"          for the AMIGA (512 K) KEITH NEIGBOUR
  3.     ----------------------------------------------------------------------
  4.  
  5.  
  6.     From Amiga Basic type in RUN "Megadisc4:Calculator/CALC"      and ENTER.
  7.     ( or click on "CALC" icon from Megadisc4 )
  8.  
  9.  
  10.  
  11.  
  12.  
  13.  
  14.     GENERAL DESCRIPTION
  15.     -------------------
  16.     This program "converts" the computer into a powerful and versatile
  17.     R.P.N. (Reverse Polish Notation) calculator, with an automatic four
  18.     register (4 memories) Stack, 10 sets of ten general Stores (100
  19.     memories) and other special Stores such as memories for Summations,
  20.     Last X and Last Y etc.
  21.  
  22.     In addition to the four basic arithmetic functions, the calculator
  23.     currently provides over 70 key functions, and operations.
  24.  
  25.     All conditions are displayed i.e. the Input, the Stack, (the Stores,
  26.     if in the Display mode), the function, and where appropriate, comment
  27.     or a message, and also the "working effect" of the function operation
  28.     on the Stack and Stores.
  29.  
  30.     The calculator carries out all calculations in Double Precision (16
  31.     figure accuracy). The number handling capacity of the calculator is
  32.     from 9.9D-307 to 9.9D+307.
  33.  
  34.     Numbers can be entered in Decimal format or Scientific Notation or as
  35.     Hexadecimal numbers and even as Octal or Binary numbers. This is
  36.     explained in detail under SPECIAL KEYS AND FUNCTIONS.
  37.  
  38.     Generally, the operation of the Calculator functions is carried out by
  39.     clicking the Left Mouse button with the Mouse arrow over the
  40.     appropriate key or area.
  41.  
  42.     Alternatively certain screen key functions can also be activated by
  43.     pressing appropriate keys on the computer key-board.
  44.  
  45.     In all cases, whether from the screen or the keyboard, when a key is
  46.     selected, the particular screen key box surround color will change from
  47.     white to red, to confirm that it has been successfully activated.
  48.  
  49.     Briefly, REVERSE POLISH NOTATION, for a simple arithmetic operation
  50.     (as an example), requires you to "lay down" two numbers (X and Y)
  51.     BEFORE instructing the calculator to add, deduct, multiply or
  52.     divide the two numbers. This differs from ordinary calculators, where
  53.     one number is entered, then the command to add or deduct etc. and then
  54.     the second number. R.P.N. is explained in more detail under "REVERSE
  55.     POLISH NOTATION".
  56.  
  57.     The key pads shown on the screen display are activated by clicking the
  58.     left mouse button once, when the mouse arrow tip is within the small
  59.     rectangle framing a particular key.
  60.  
  61.  
  62.  
  63.  
  64.     THE FUNCTIONS OF THE SCREEN KEYS, AS SHOWN IN FIGURE 1 (below), ARE AS
  65.     FOLLOWS:
  66.  
  67.  
  68.             NUMERIC KEY PAD  (Top Left Group)
  69.             ---------------
  70.             Digits 0 to 9 and the Decimal point are used to "construct"
  71.             the number X in the normal way. The number will be displayed,
  72.             progressively above the numeric Key Pad (INPUT DISPLAY BOX)
  73.             and also in the X Register on the right hand side of the
  74.             screen.
  75.  
  76.     /       Divide the value in the Y Register by the value in the X
  77.             Register.
  78.  
  79.     *       Multiply the two values in the Y and X Registers.
  80.  
  81.     -       Deduct, from the value in the Y Register, the value in the X
  82.             Register.
  83.  
  84.     +       Add the two values in the Y and X Registers.
  85.  
  86.             All of the four above operations will cause a "Stack Drop".
  87.             (This is explained in detail later under REVERSED POLISH
  88.             NOTATION).
  89.  
  90.     ENT     ENTER.  The X value is duplicated into the Y Register causing
  91.             a "Stack Lift". That is, the Y value is transferred into the Z
  92.             Register and the Z value is transferred into the T Register.
  93.             The T value is "lost over the top".
  94.  
  95.  
  96.  
  97.     The functions of the 16 keys in the screen Numeric key pad (within the
  98.     red boundary) can also be activated by the equivalent keys on the
  99.     computer key-board. Furthermore mixed-use is permitted. That is a
  100.     number can be partly keyed in from the screen Numric Keys and partly
  101.     from the computer keyboard.
  102.  
  103.  
  104.  
  105.     C1X     Clears (deletes) the number X.
  106.  
  107.     CSk     Clears the Register Stack (X, Y, Z & T)
  108.             ( but NOT Last X or Y ).
  109.  
  110.     CSt     Clear the current STORES Set.
  111.  
  112.     Inv     Inverts the Stack (X, Y, Z, T to T, Z, Y, X).
  113.  
  114.     ChS     Changes the sign of X (+ to - or - to +).
  115.  
  116.     Sk  /\  Rolls the Stack UP (in a Loop).
  117.  
  118.     Sk  \/  Rolls the Stack DOWN (in a Loop).
  119.  
  120.     StS     Stores the value of X in a nominated Store S0 to S9 in the
  121.             current Store Set. After clicking on this key, click on the
  122.             chosen Store (S0 to S9). (A prompt will appear in the top
  123.             centre Remark Box).
  124.  
  125.     RcS     Recalls the value in the nominated store and transfers it into
  126.             the X Register.
  127.             (This causes a "Stack Lift").
  128.             After clicking on this key, click the appropriate Store number
  129.             as for StS.
  130.  
  131.     SAr     Store Arithmetic. This allows the value in the chosen store to
  132.             be multiplied by X, or divided by X, or added to X, or to have
  133.             X deducted from it. After clicking on this key, click
  134.             appropriate Store number as for StS, and then click the /, *,
  135.             - or + key, as required.
  136.  
  137.     Exc     Exchanges the values of the X and Y Registers.
  138.  
  139.     LsX     Recalls the value of the "Last X" (shown in the bottom right
  140.             box on the screen) into the X Register.
  141.             (This causes a Stack Lift).
  142.  
  143.     LsY     Recalls the value of "Last Y" (as for LsX).
  144.  
  145.     SXS     Swaps the values in the X Register and in the chosen Store.
  146.             After clicking on this key, click appropriate Store number as
  147.             for StS.
  148.  
  149.     SYS     Swaps Y with a Store as for SXS.
  150.  
  151.     RdX     Round the decimal component of X (if any) to a specified
  152.             number of places. After clicking on this key, you will be
  153.             prompted to "Key No. & ENTER". Click the digit(s) for the
  154.             required number of decimal places e.g. 3 or 10. The number
  155.             will appear in the Comment Box (see the "undo" function).
  156.             When correct, click on ENT.
  157.             This is a one-off operation.
  158.  
  159.     RdF     Rounds and Fixes (until cancelled) the number of decimal
  160.             places for all future calculations. Activate RdF as for RdX.
  161.             To stop rounding click on RdF a second time. This is a
  162.             "toggle" key. When it is ON a small red dot is displayed on
  163.             the key.
  164.  
  165.     D>F     Converts a decimal value to an equivalent fraction. If it is
  166.             not an exact fraction, it will produce an equivalent fraction
  167.             value within the accuracy limits of the computer. The
  168.             Numerator will be displayed in the Z Register and the
  169.             Denominator in the Y Register.
  170.  
  171.     Abs     Converts the value of X to its absolute value, that is, the
  172.             sign attributed to the number is removed.
  173.  
  174.     Rn#     Generates a Random Number. After clicking on this key you will
  175.             be prompted to "Key No. & ENTER". Click the digit(s) for the
  176.             upper limit random number required. (e.g. 10, 99,1000 etc.)
  177.             A random number between 1 and the upper limit, will then be
  178.             transferred into the X Register causing a Stack Lift.
  179.  
  180.     Lge     The "natural" Logarithm (Log. Base e) X will be substituted
  181.             for the original value of X, in the X Register.
  182.  
  183.     Lgt     As for Lge, but the Base 10 Logarithm.
  184.  
  185.     ALe     Subtitutes the Anti-log (Base e) value for the number in the X
  186.             Register. (This is the Exponential number of X).
  187.  
  188.     ALt     Substitutes the Anti-log (Base 10) of X for X in the X
  189.             Register.
  190.  
  191.     NOTE    that for the Trigonometric Pad, (the seven Trig Keys enclosed
  192.             in a red border), the current "Angles mode" of the calculator
  193.             must be taken into account. This is displayed under the
  194.             Numeric Key Pad as "Deg Mode" or "Rad Mode". The mode can be
  195.             toggled as Degrees or Radians, by clicking on the Deg or Rad
  196.             box.
  197.  
  198.     Sin     Substitues the Sine of X for the original value of X in the X
  199.             Register.
  200.  
  201.     Cos     Cosine X (as for Sine).
  202.  
  203.     Tan     Tangent X (as for Sine).
  204.  
  205.     ASn     Arc Sine X (as for Sine).
  206.  
  207.     ACS     Arc Cosine X (as for Sine).
  208.  
  209.     ATn     Arc Tangent X (as for Sine).
  210.  
  211.     Hyp     Clicking on this key and then clicking on any one of the six
  212.             above keys will carry out a Hyerbolic Trigonometric function.
  213.             (This is a "one-off" key operation, i.e. each time it is
  214.             required, the Hyp key must be clicked before the appropriate
  215.             trig key).
  216.  
  217.     Sqr     Substitutes the square of X in the X Register.
  218.  
  219.     SRt     Substitutes the square root of X for X in the X Register.
  220.  
  221.     Fib     Calculates a Fibonacci Series to an upper designated number.
  222.             After clicking on this key, you will be prompted to "Key No.
  223.             & ENTER". A Stack Lift occurs. Click the digits for the
  224.             required number. (The highest number which can be calculated
  225.             is 1475 ... this is a long calculation!). You will be
  226.             reminded if you try a higher number.
  227.  
  228.     Fac     Calculates the Factorial value of a number up to a limit of
  229.             170. Keying is the same proceedure as for Fib.
  230.  
  231.     Y X     Raises Y to the power of X.
  232.             This causes a Stack Drop.
  233.  
  234.     InD     Integer Division ... giving the Integer value of Y divided
  235.             by X.
  236.             This causes a Stack Drop.
  237.  
  238.     Pi      Tranfers the value of Pi into the X Register.
  239.             This will cause a Stack Lift.
  240.  
  241.     Sci     To enter a number in scientific notation (e.g. 1.123456789D16)
  242.             first click on Sci, and then simply construct the number in
  243.             this form, either from the screen keys of from the keyboard
  244.             (the D or E will have to be activated from the keyboard).
  245.  
  246.     Int     Substitutes the Integer value of X for X in the X Register.
  247.  
  248.     Frc     Substitutes the Decimal component of X for X in the X
  249.             Register.
  250.  
  251.     Rec     Substitutes the Reciprocal of X (1 divided by X) for X in the
  252.             X Register.
  253.  
  254.     >H.     Converts Hours (or Degrees), minutes and seconds to Decimal
  255.             Hours (or Decimal Degrees). The digits MUST be keyed in this
  256.             format BEFORE clicking >.H.
  257.                   Hours (or Degrees) e.g.  14 (or 269).
  258.                   A Decimal point.
  259.                   2 Digits of minutes e.g.  06 or 57
  260.                   2 Digits of seconds e.g.  09 or 43638
  261.                   (plus other Digits for decimal seconds if required)
  262.             Clicking >.H substitutes Decimal Hours (or Degrees) for
  263.             the above in the X Register.
  264.  
  265.     H.>     Converts Decimal Hours (or Degrees) e.g.  9.374659 or
  266.             173.41237, to Hours (or Degrees) minutes and seconds (in the
  267.             format described for >.H input), which is substituted in the X
  268.             Register.
  269.  
  270.     D>R     Substitutes an equivalent Radians value of X in Degrees, in
  271.             the X Register. This also puts the calculator into Rad Mode
  272.             until the mode is changed.
  273.  
  274.     R>D     Substitutes an equivalent Degrees value of X in Radians, in
  275.             the X Register. This also puts the calculator in Deg. Mode
  276.             until the mode is changed.
  277.  
  278.     Per     Calculates the Permutation Y p X using the values in the X and
  279.             Y Registers in the sense of "X things taken Y at a time".
  280.             The result is substituted in the X Register.
  281.             This causes a Stack Drop.
  282.  
  283.     Com     Calculates the Combination YcX in a procedure similar to Per.
  284.  
  285.     R>P     Rectangular co-ordinates to Polar. The Y co-ord. and the X
  286.             co-ord. (pos. or neg.) are first positioned in the Y and X
  287.             Registers. Clicking R>P will then substitute the Angle in the
  288.             Y Register and the Radius in the X Register.
  289.  
  290.     P>R     Polar to Rectangular Co-ordinates. The angle in the current
  291.             Mode (equivalent to 0 to 180° positive or negative) and the
  292.             Radius are first positioned in the Y and X Registers, clicking
  293.             P>R will then substitute the Y and X co-ordinates in the Y and
  294.             X Registers.
  295.  
  296.     X%Y     Calculates X as a % of Y. The result is substituted in the X
  297.             Register leaving Y intact.
  298.  
  299.     %Df     % Difference between X and Y. Express the relative increase
  300.             (+) or decrease (-) of X compared with Y. The Base number Y
  301.             is left intact.
  302.  
  303.     Su+     The Summation functions (Su+, SU-, MAv, DEV) use the values of
  304.             pairs of data positioned in the Y and X Registers to
  305.             progressively record the sums of X, X², Y, Y², X*Y and the
  306.             number of pairs of data, in special stores. After each pair is
  307.             positioned, click SU+.
  308.  
  309.     Su-     If an incorrect data pair has already been summed with Su+,
  310.             position this data pair in Y and X and click Su- to remove
  311.             from the summation.
  312.  
  313.     MAv     Calculates the Mean Average of the X values and substitutes it
  314.             in the X Register, and calculates the Mean Average of the Y
  315.             values and substitutes it in the Y Register.
  316.  
  317.     Dev     Calculates the Standard Deviation from the Mean of X and Y and
  318.             substitutes it in the X and Y Registers.
  319.  
  320.  
  321.     WARNING:   When using the SUMMING functions, use CSt (Clear Stores)
  322.                in between different summing exercises. This will clear all
  323.                current Stores.
  324.  
  325.  
  326.     Hex     This turns on a Hexadecimal conversion facility of the X
  327.             value. The equivalent Hex value of the Integer of X is
  328.             displayed below the X Register in a special box.
  329.             This continues until the Hex key is clicked again. This is a
  330.             toggle key. When it is on a small red dot is displayed on the
  331.             key.
  332.  
  333.     Oct     This turns on an Octal conversion facility of the X value. It
  334.             is similar in operation to Hex.
  335.             This is a toggle key.
  336.  
  337.     Bin     This turns on a Binary conversion facility of the X value. It
  338.             is similar in operation to Hex.
  339.             This is a toggle key.
  340.             If the Binary string is too long to be displayed (more than
  341.             24 characters) a comment will be shown, and the conversion
  342.             will be ignored.
  343.  
  344.     PtX     This will print out the X Register value, the Hex equivalent
  345.             (if the Hex is ON) and the current Remark. (First make sure
  346.             that the Printer is ON!).
  347.             This is a one-off operation.
  348.  
  349.     Apr     Auto Print Out. This will print out the information described
  350.             under PtX, progressively, until it is turned off, by clicking
  351.             on Apr a second time.
  352.             This is a toggle key.
  353.  
  354.  
  355.  
  356.  
  357.     REVERSE POLISH NOTATION
  358.     -----------------------
  359.  
  360.     Four Registers (memories) form an automatic Register Stack. These are
  361.     labelled X, Y, Z and T, and are "Stacked" one on top of the other,
  362.     with the performing Stack X at the bottom in a window.
  363.  
  364.  
  365.  
  366.  
  367.     STACK LIFT:
  368.     -----------
  369.     A number is keyed into the X Register by progressively clicking on
  370.     Digit Keys.
  371.  
  372.     When you do something else, by clicking on another non-digit key, it
  373.     is assumed that the number is complete in the X Register. If ENT is
  374.     clicked the value in the X Register is duplicated into the Y Register
  375.     (and Y into T and T into Z). This is a manual Stack Lift.
  376.  
  377.     However if arithmetic involving X is to be performed (+, -, *, /)
  378.     firstly key in the second number and ENT, which will "lift" the Stack.
  379.     That is, T is lost over the top, Z lifts into T, Y lifts into Z, X (the
  380.     first number) lifts into Y, and the second number will occupy X.
  381.  
  382.  
  383.  
  384.     STACK DROP:
  385.     -----------
  386.     Any arithmetic function will operate as: Y (function) X (e.g. Y/X).
  387.     The result will appear in the X Register and the Stack will "drop".
  388.     That is, Z will appear in the Y Register replacing the old Y, and T
  389.     will duplicate itself in the Z Register.
  390.  
  391.     With the exception of functions such as Y^X which use X and Y as in
  392.     the above arithmetic functions, most codes will operate on X alone.
  393.     For example, keying Lgt will change the number in X to Log 10 X, or Pi
  394.     will place the value Pi in the X Register and cause an automatic Stack
  395.     Lift. Other operations which use both X and Y are described in the key
  396.     listings.
  397.  
  398.     Generally a keyed in function overwrites the value in X with the new
  399.     value, as the function operates upon X. Exceptions are LsX, Pi, RcS
  400.     (Recall value in Store n), and Rn# (Random Number 1 to n), each of
  401.     which causes a Stack Lift.
  402.  
  403.     "Last X" and "Last Y" (before the last operation) are retained in
  404.     special Stores and can be recalled into Register X by keying LsX or
  405.     LsY.
  406.  
  407.     Generally a number-set keyed in after a keyed in function will cause a
  408.     Stack Lift. Exceptions occur when the previous function was C1X
  409.     (Clear X), or ENT when used to duplicate X into Y. In these cases the
  410.     new number will overwrite the value in X. X values can be stored in
  411.     the STORES, S1 to S10 and recalled into the Stack X Register. Store
  412.     arithmetic can be performed on the values in the STORES, e.g. SAr then
  413.     S3 then + which will add the values in the Stack Register X to the
  414.     value already in STORE S3. The value in X remains the same.
  415.  
  416.     Hierarchical operational priorities and the establishment of a
  417.     required order of operational priorities by use of parentheses, as used
  418.     in algebraic Calculators (and computers) is not necessary with R.P.N.
  419.     It is handled by STACK manipulation, and what is more you can see it
  420.     all happening.
  421.  
  422.     If you are not familiar with R.P.N., this program will literally teach
  423.     you how to use Reverse Polish Notation while you use it.
  424.  
  425.  
  426.  
  427.     SPECIAL KEYS AND FUNCTIONS
  428.     --------------------------
  429.  
  430.     BSp     Backspace ... this operates like a normal Backspace key when a
  431.             number is being constructed, either from the screen or the
  432.             keyboard,  stripping the last digit from the number (Backspace
  433.             on the keyboard is NOT an alternative in this case). However
  434.             once the number has been completed, that is, another key action
  435.             has occured it cannot be used. (Use C1X and start again).
  436.  
  437.     Dsp     Displays the current STORE Set and its identification Number
  438.             1 to 10. This is a Toggle Switch and a second click will
  439.             remove the STORE display.
  440.  
  441.     \/ /\   Stores Set ...
  442.             These arrow symbols, if clicked, will roll the Stores Sets
  443.             DOWN or UP through Set 1 to Set 10  displaying values in the
  444.             current displayed Set. (S0 to S9).
  445.             The current displayed Set, then becomes the active Set.
  446.             e.g. if Set 7 is displayed and a value is transferred from the
  447.             X Register using StS into S3, then this value remains in
  448.             Stores Set 7, Store number S3 throughout subsequent other
  449.             Store Set operations (or until the value in Set 7, Store 3 is
  450.             changed).
  451.  
  452.  
  453.             If you wish to identify the original function which occurred
  454.             just prior to transferring the value which appears opposite
  455.             any Store in current Stores Set display, click on the
  456.             particular Store number e.g. S3.
  457.             The color of the number in the selected Store will change from
  458.             white to red to show that you have selected the correct Store,
  459.             and the last associated "prior" function will be displayed in
  460.             the Comment Box.
  461.             A second click will remove the color identification and the
  462.             comment.
  463.  
  464.     <undo>  If a function on a number has just been carried out on the
  465.             original value in the INPUT DISPLAY BOX and the X Register,
  466.             the operation can be undone by clicking on the Left arrow <
  467.             undo. (If it hasn't yet been carried out correct the number
  468.             with BSp or C1X).
  469.  
  470.             When "special" numbers are used such as for RdX (Rounding)
  471.             or Fib they are displayed in the Comment Box while being
  472.             constructed.
  473.             To correct a special number whilst it is being constructed do
  474.             NOT use BSp, use the Right arrow undo > to strip last digits.
  475.             If the special number has already been "completed" and you
  476.             have clicked on ENT (e.g. for a STORE Arithmetic operation),
  477.             and you wish to correct or change the special number, clicking
  478.             on Right arrow undo > will enable you to undo and start again.
  479.  
  480.  
  481.  
  482.  
  483.     HEXADECIMAL Number Input
  484.     ------------------------
  485.     Clicking on the Hex Key provides and displays equivalent X Integer -
  486.     number Hex numbers.
  487.     However, to input a number in Hex form (whether or not Hex conversion
  488.     and display is on), before constructing the Hex number, the letter H
  489.     MUST be pressed on the computer keyboard. Tis will appear to be
  490.     ignored in the displays, but the calculator knows that you are
  491.     entering a Hex number and will treat it accordingly.
  492.     Of course the A to F components of the Hex number must be pressed on
  493.     the Computer keyboard, but the digits can either keyboard or screen
  494.     key generated.
  495.     If you forget to press H and attempt to use an A to F key as a Hex
  496.     number component you will be reminded in the Comment Box to press H
  497.     before a Hex number! If you think you are entering a Hex number which
  498.     is all digits, and you have forgotten to press H first, it will be
  499.     treated as a decimal number. (Your fault, not the Calculator's).
  500.  
  501.     Each time you wish to enter a Hex number it must be individually
  502.     preceded with H.
  503.  
  504.     All calculations and functions can combine a mixture of numbers input
  505.     in Hex or Decimal form.
  506.     (If the Hex display is on, the results are of course given in both
  507.     forms, but remember that a Hex equivalent only represents the Integer
  508.     of the X decimal number).
  509.  
  510.  
  511.  
  512.     OCTAL Number Input
  513.     ------------------
  514.     The precedure in similar to that for inputting Hex numbers, except
  515.     that the letter O must be pressed on the computer keyboard, before
  516.     constructing the Octal number (either from the screen key numbers or
  517.     the computer keyboard).
  518.  
  519.  
  520.     BINARY Number Input
  521.     -------------------
  522.     The procedure is similar to that for inputting Hex numbers, except
  523.     that the letter Z (mainly because its probably the last thing you
  524.     would probably want to do) must be pressed on the Computer keyboard,
  525.     before constructing the Binary number from ones and zeros (either from
  526.     the screen key numbers or the computer keyboard).
  527.  
  528.  
  529.     DEGREES / RADIANS MODE
  530.     ----------------------
  531.     The Deg or Rad Box provides a Toggle switch to change future
  532.     operations, when angles must be expressed in the current mode.
  533.     However it will not change previous Angle values if they have been
  534.     saved in Registers or Stores in a different mode so either REMEMBER!
  535.     or DON'T MIX! during any one exercise involving Angles.
  536.  
  537.  
  538.  
  539.                        END OF CALC.MANUAL  
  540.